<?php
function PStart(){
    //$GLOBALS['line']=__LINE__;
    $GLOBALS['mem']=memory_get_usage  (FALSE);
    $GLOBALS['cpu']=microtime();
}

function PStop(){
    echo sprintf('mem:%s,cpu:%s<br/>',
		 //$GLOBALS['line'],__LINE__,
		 (memory_get_usage (FALSE)-$GLOBALS['mem']),
		 microtime()-$GLOBALS['cpu']);
}
?>